package com.xuecheng.content.api;

import com.xuecheng.commons.model.vo.CourseBaseVo;
import com.xuecheng.commons.model.vo.CoursePubVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 12441
 * @Date 2022/9/21 19:36
 * @Version 1.0
 */
@FeignClient("xc-content-service")
public interface ContentClient {
    @GetMapping("/coursePub/{id}")
    ResponseResult<CoursePubVo> findById(@PathVariable("id")Long id);
}
